.TH E1432_SRC_PROG_ROMIMAGE 3 E1432
.SH NAME
.nf
e1432_src_prog_romimage \- Programs source board flash rom.
.fi
.IX e1432_src_prog_romimage(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16
e1432_src_prog_romimage(E1432ID hw,SHORTSIZ16 src_chan, LONGSIZ32 *dptr,
                        LONGSIZ32 numwords)
.cE
.SH DESCRIPTION
\fIe1432_src_prog_romimage\fR programs the flash rom associated with source
channel \fIsrc_chan\fR, from binary file loaded into array, pointed to
by \fIdptr\fR, of size \fInumwords\fR.

\fIsrc_chan\fR is the ID of a single channel.

\fIdptr\fR points to the location the binary rom file is stored in memory.

\fInumwords\fR is the size of the file in 4 byte words.

The binary file in the array is validated, the system area of the rom is
erased, then it is programmed, 4096 words at a time.  Prints to stdout describe
what is going on.

CAUTION:  Interrupting the erase and reprogramming of the source flash rom
will create a currupt rom which is useless.  A recover service procedure is
in arbsrc/romfix.txt.

The cal factors and hardware revision information are not affected by this process.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_src_get_fwrev(3), e1432_src_get_rev(3), srcutil(1)
.ad
